package com.fudan.adse.domain.dto;

import lombok.*;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 *
 * @author Jerry Zhang
 * create: 2022-11-23 23:02
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class NewTopUpDTO {
    @NotBlank(message = "用户名不能为空")
    private String username;
    @NotBlank(message = "额度不能为空")
    @DecimalMin(value = "0", message = "充值金额大于应该 0")
    private BigDecimal amounts;
    private String currency;
    private String type;
}
